package com.iot.hmi.pojo;

import javafx.beans.property.*;

public class LatestValueVO {
    private StringProperty itemAddress = new SimpleStringProperty();
    private DoubleProperty collectValue = new SimpleDoubleProperty();
    private LongProperty collectStamp = new SimpleLongProperty();


    public String getItemAddress() {
        return itemAddress.get();
    }

    public void setItemAddress(String itemAddress) {
        this.itemAddress.set(itemAddress);
    }

    public StringProperty itemAddressProperty() {
        return itemAddress;
    }

    public Double getCollectValue() {
        return collectValue.get();
    }

    public void setCollectValue(Double collectValue) {
        this.collectValue.set(collectValue);
    }

    public DoubleProperty collectValueProperty() {
        return collectValue;
    }

    public Long getCollectStamp() {
        return collectStamp.get();
    }

    public void setCollectStamp(Long collectStamp) {
        this.collectStamp.set(collectStamp);
    }

    public LongProperty collectStampProperty() {
        return collectStamp;
    }

    @Override
    public String toString() {
        return "LatestValueVO{" +
                "itemAddress='" + itemAddress.get() + '\'' +
                ", collectValue=" + collectValue.get() +
                ", collectStamp=" + collectStamp.get() +
                '}';
    }
}
